<?php


namespace App\Http\Controllers\applets\model;


use Illuminate\Support\Facades\DB;

class BrowserModel
{
    public static function addGetId($param){
        return DB::table('t_browser')->insertGetId($param);
    }

    public static function add($param){
        return DB::table('t_browser')->insert($param);
    }

    public static function queryFirst($where,$field){
        return DB::table('t_browser')->where($where)->first($field);
    }

    public static function delete($where){
        return DB::table('t_browser')->where($where)->delete();
    }

    public static function queryWhere($where,$field){
        return DB::table('t_browser')->where($where)->get($field);
    }

    public static function edit($where,$param){
        return DB::table('t_browser')->where($where)->update($param);
    }
    
}